﻿<ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
                    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
                    xmlns:local="clr-namespace:WickedFlame.VecDraw.Base.Controls">

    <SolidColorBrush x:Key="SunkenBackground" Color="#444444" />
    <SolidColorBrush x:Key="HighlightBorderBrush" Color="#808080" />
    <SolidColorBrush x:Key="Shadow" Color="#101010" />

    <Style TargetType="{x:Type Button}" x:Key="transparentButton">
        <Setter Property="FocusVisualStyle" Value="{x:Null}"/>
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="{x:Type Button}">
                    <Grid>
                        <Border BorderThickness="0" Background="Transparent">
                            <ContentPresenter VerticalAlignment="{TemplateBinding VerticalAlignment}"
                                              HorizontalAlignment="{TemplateBinding HorizontalAlignment}"
											SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}"/>
                        </Border>
                    </Grid>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>

    <Style TargetType="{x:Type local:ColorSwatch}">
        <Setter Property="FocusVisualStyle" Value="{x:Null}"/>
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="{x:Type local:ColorSwatch}">
                    <Grid>
                        <Border BorderBrush="Black" BorderThickness="1" Background="Transparent">
                            <Grid >
                                
                                <ContentPresenter ContentSource="SwatchImage" SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}"  />
                                <Canvas x:Name="PART_SwatchCanvas" HorizontalAlignment="Stretch" VerticalAlignment="Stretch" Background="Transparent">
                                    <Ellipse x:Name="PART_SelectionPoint" Width="3" Height="3" Stroke="Black" StrokeThickness="0.5" Fill="White" Canvas.Left="0" Canvas.Top="0"/>
                                </Canvas>

                            </Grid>
                        </Border>
                    </Grid>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>
    
</ResourceDictionary>